<div class="box">
  <div class="box-heading"><?php echo $heading_title; ?></div>
  <div class="box-content" style="text-align: center;">
  	<input type="text" name="name" id="add_name" value="<?php echo $column_name; ?>" onblur="javascript:if(this.value == ''){this.value='<?php echo $column_name; ?>'};" onfocus="javascript:if(this.value == '<?php echo $column_name; ?>'){this.value=''};"><br /><br />
    <input type="text" name="email" id="add_email" value="<?php echo $column_email; ?>" onblur="javascript:if(this.value == ''){this.value='<?php echo $column_email; ?>'};" onfocus="javascript:if(this.value == '<?php echo $column_email; ?>'){this.value=''};">
    <br /><br />
    <input type="submit" class="button" id="add_button" value="<?php echo $submit; ?>">
  </div>
</div>

<script type="text/javascript"><!--
$('#add_button').live('click', function() {
	$.ajax({
		url: 'index.php?route=module/newsletter/insert',
		type: 'post',
		data: {name : $('#add_name').val(), email : $('#add_email').val()},
		dataType: 'json',				
		success: function(json) {
			if (json['error']) {
				alert(json['error']['warning']);
			} else {
				alert(json['success']);
			}
		}
	});	
});	
//--></script>